package com.yxw.yxnet_cd_center.customer_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("yx_cs_tag")
@ApiModel("标签实体类")
public class YxCsTagEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 标签Id */
    @TableId(value = "tag_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("标签Id")
    private Long tagId;

    /** 标签名称 */
    @ApiModelProperty("标签名称")
    private String tagName;

    /** 标签描述 */
    @ApiModelProperty("标签描述")
    private String description;

    /** 创建时间 */
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /** 更新时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
